﻿<?php
include 'include/setup.php';

$set = new setup();

if(!isset($_SESSION['user_login'])) {
    $set->redirect("http://192.185.116.17/~wwwmsc/administrator/index.php");
}

include 'include/head.php';
include 'include/menu.php';
?>

<head>
    <link href="css/admin_style.css" rel="stylesheet" type="text/css" />
</head>

<?php
// κριτήρια αναζήτησης
$searchterm_title = $_POST['searchterm_title'];
$searchterm_desc  = $_POST['searchterm_desc'];
$searchterm_date  = $_POST['searchterm_date'];
$searchterm_apr   = $_POST['searchterm_apr'];

// πεδία βάσης
$adtitle = $_POST['adtitle'];
$addesc  = $_POST['addesc'];
$adcode  = $_POST['adcode'];
$adtype  = $_POST['adtype'];
$addate  = $_POST['addate'];
$ademail = $_POST['ademail'];
$adloc   = $_POST['adloc'];
$adsal   = $_POST['adsal'];
$adΟΚ    = $_POST['adΟΚ'];


$ad_id = $_GET['id'];
$action = $_GET['action'];

?>

<body class="background">
<?php


if(!isset($ad_id) && !isset($action)) // αν δεν έχουν επιλεγεί αγγελίες και actions
{	
    include 'include/adv/adv_search.php';
    include 'include/adv/adv_results.php';
}
else 
{
    include 'include/adv/adv_more.php';

}
?>
</body>